package com.china.school;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class FactoryMethodTest {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("FactoryMethodTest.xml");
        System.out.println("-----staticUser------");

        System.out.println(ctx.getBean("staticUser"));

        System.out.println("-----instanceUser------");
        System.out.println(ctx.getBean("instanceUser"));

     }
}
